//
// Created by jinbang.li on 2023/4/8.
//

#ifndef OPENPLAYDEMO_OPDATA_H
#define OPENPLAYDEMO_OPDATA_H
enum OpDataType{
    AVPACKET_TYPE = 0,
    UCHAR_TYPE = 1,
};

struct OpData {
    int type = 0;
    unsigned char *data = 0;
    unsigned char *datas[8] = {0};
    int size = 0;
    bool isAudio = false;
    int width = 0;
    int height = 0;
    bool alloc(int size,const char *data = 0);
    void dropData();
};


#endif //OPENPLAYDEMO_OPDATA_H
